home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Tool Chest / !Interfaces / Universal Interfaces 2.0a1 / CIncludes / ROMDefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-17  |  4.3 KB  |  125 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        ROMDefs.h
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a1.  ETO #15, MPW prerelease.  Sunday, July 17, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. */
  16.  
  17. #ifndef __ROMDEFS__
  18. #define __ROMDEFS__
  19.  
  20.  
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24.  
  25. #if GENERATINGPOWERPC
  26. #pragma options align=mac68k
  27. #endif
  28.  
  29. #ifdef __CFM68K__
  30. #pragma lib_export on
  31. #endif
  32.  
  33.  
  34. enum {
  35.     appleFormat                    = 1,                            /*Format of Declaration Data (IEEE will assign real value)*/
  36.     romRevision                    = 1,                            /*Revision of Declaration Data Format*/
  37.     testPattern                    = 1519594439,                    /*FHeader long word test pattern*/
  38.     sCodeRev                    = 2,                            /*Revision of code (For sExec)*/
  39.     sCPU68000                    = 1,                            /*CPU type = 68000*/
  40.     sCPU68020                    = 2,                            /*CPU type = 68020*/
  41.     sCPU68030                    = 3,                            /*CPU type = 68030*/
  42.     sCPU68040                    = 4,                            /*CPU type = 68040*/
  43.     sMacOS68000                    = 1,                            /*Mac OS, CPU type = 68000*/
  44.     sMacOS68020                    = 2,                            /*Mac OS, CPU type = 68020*/
  45.     sMacOS68030                    = 3,                            /*Mac OS, CPU type = 68030*/
  46.     sMacOS68040                    = 4,                            /*Mac OS, CPU type = 68040*/
  47.     board                        = 0,                            /*Board sResource - Required on all boards*/
  48.     displayVideoAppleTFB        = 16843009,                        /*Video with Apple parameters for TFB card.*/
  49.     displayVideoAppleGM            = 16843010,                        /*Video with Apple parameters for GM card.*/
  50.     networkEtherNetApple3Com    = 33620225,                        /*Ethernet with apple parameters for 3-Comm card.*/
  51.     testSimpleAppleAny            = -2147417856,                    /*A simple test sResource.*/
  52.     endOfList                    = 255,                            /*End of list*/
  53.     defaultTO                    = 100,                            /*100 retries.*/
  54.     sRsrcType                    = 1                                /*Type of sResource*/
  55. };
  56.  
  57. enum {
  58.     sRsrcName                    = 2,                            /*Name of sResource*/
  59.     sRsrcIcon                    = 3,                            /*Icon*/
  60.     sRsrcDrvrDir                = 4,                            /*Driver directory*/
  61.     sRsrcLoadDir                = 5,                            /*Load directory*/
  62.     sRsrcBootRec                = 6,                            /*sBoot record*/
  63.     sRsrcFlags                    = 7,                            /*sResource Flags*/
  64.     sRsrcHWDevId                = 8,                            /*Hardware Device Id*/
  65.     minorBaseOS                    = 10,                            /*Offset to base of sResource in minor space.*/
  66.     minorLength                    = 11,                            /*Length of sResource’s address space in standard slot space.*/
  67.     majorBaseOS                    = 12,                            /*Offset to base of sResource in Major space.*/
  68.     majorLength                    = 13,                            /*Length of sResource in super slot space.*/
  69.     sRsrccicn                    = 15,                            /*Color icon*/
  70.     sRsrcicl8                    = 16,                            /*8-bit (indexed) icon*/
  71.     sRsrcicl4                    = 17,                            /*4-bit (indexed) icon*/
  72.     sGammaDir                    = 64,                            /*sGamma directory*/
  73.     sDRVRDir                    = 16,                            /*sDriver directory*/
  74.     drSwApple                    = 1,                            /*To ask for or define an Apple-compatible SW device.*/
  75.     drHwTFB                        = 1,                            /*HW ID for the TFB (original Mac II) video card.*/
  76.     drHw3Com                    = 1,                            /*HW ID for the Apple EtherTalk card.*/
  77.     drHwBSC                        = 3
  78. };
  79.  
  80. enum {
  81.     catBoard                    = 1,                            /*Category for board types.*/
  82.     catTest                        = 2,                            /*Category for test types -- not used much.*/
  83.     catDisplay                    = 3,                            /*Category for display (video) cards.*/
  84.     catNetwork                    = 4,                            /*Category for Networking cards.*/
  85.     boardId                        = 32,                            /*Board Id*/
  86.     pRAMInitData                = 33,                            /*sPRAM init data*/
  87.     primaryInit                    = 34,                            /*Primary init record*/
  88.     timeOutConst                = 35,                            /*Time out constant*/
  89.     vendorInfo                    = 36,                            /*Vendor information List. See Vendor List, below*/
  90.     boardFlags                    = 37,                            /*Board Flags*/
  91.     secondaryInit                = 38,                            /*Secondary init record/code*/
  92.     sRsrcVidNames                = 65,                            /*Video mode name directory*/
  93.     vendorId                    = 1,                            /*Vendor Id*/
  94.     serialNum                    = 2,                            /*Serial number*/
  95.     revLevel                    = 3,                            /*Revision level*/
  96.     partNum                        = 4,                            /*Part number*/
  97.     date                        = 5,                            /*Last revision date of the card*/
  98.     typeBoard                    = 0,                            /*Type for board types.*/
  99.     typeApple                    = 1,
  100.     typeVideo                    = 1                                /*Type for video types.*/
  101. };
  102.  
  103. enum {
  104.     typeEtherNet                = 1,                            /*Type for ethernet types.*/
  105.     testByte                    = 32,                            /*Test byte.*/
  106.     testWord                    = 33,                            /*0021*/
  107.     testLong                    = 34,                            /*Test Long.*/
  108.     testString                    = 35                            /*Test String.*/
  109. };
  110.  
  111.  
  112. #ifdef __CFM68K__
  113. #pragma lib_export off
  114. #endif
  115.  
  116. #if GENERATINGPOWERPC
  117. #pragma options align=reset
  118. #endif
  119.  
  120. #ifdef __cplusplus
  121. }
  122. #endif
  123.  
  124. #endif /* __ROMDEFS__ */
  125.